﻿@model SysUser
@{
	ViewBag.Title = "系统用户编辑";
}
<div class="ui-widget-header">
	<div style="padding: 5px 10px; font-size: 120%">
		@ViewBag.Title
	</div>
</div>
@using (Ajax.BeginForm(null, null, new AjaxOptions { UpdateTargetId = "Main" }, new {@class="form-edit"})){
	<div class="ui-content">
		<div class="ui-cell ui-cell-full">
			@if (Model.ID > 0){@Html.HiddenFor(p => p.ID)}
			@Html.LabelFor(model => model.LoginName)
			@Html.EditorFor(model => model.LoginName)
		</div>
		<div class="ui-cell ui-cell-full">
			@Html.LabelFor(model => model.NickName)
			@Html.EditorFor(model => model.NickName)
		</div>
		<div class="ui-cell ui-cell-full">
			@Html.LabelFor(model => model.Password)
			@Html.EditorFor(model => model.Password)
			<div>添加用户信息时，密码框必须填写</div>
			<div>修改用户信息时，如果不想修改密码，密码框就不要填写</div>
		</div>
		<div class="ui-cell ui-cell-full">
			@Html.Label("Available","管理员")
			@Html.EditorFor(model => model.Available)
		</div>
		<div class="ui-cell ui-cell-full">
			<label></label>
			<input type="submit" value="保存" class="btn"/>
			@Html.ValidationSummary()
		</div>
	</div>
}